<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}"/>

<!-- 新增删除查询anniu页面 -->
<div class="row">
    <div class="col-xs-12 col-md-12">
        <div class="well with-header with-footer">
            <div class="header bordered-sky">
				<div class="row">
					<div class="col-xs-6 col-md-6">
						<button type="button" class="btn btn-default btn-sm" onclick="server.openModalBox('/doc/add','新增',1400)"><span class="glyphicon glyphicon-plus"></span> 新增</button>
		   				<button type="button" class="btn btn-default btn-sm" onclick = "server.deleteBatch('/doc/deleteBatch',common.paginationQuery,server.currentPage)"><span class="glyphicon glyphicon-trash"></span> 删除</button>
		   			</div>
					<div class="col-xs-6 col-md-3 col-md-offset-3">
						<div class="input-group">
					    	<input type="text" class="form-control input-sm pull-right input-custmor-width" id="searchKeyWords" placeholder="合同名称">
		  					<span class="input-group-btn">
		  						<button class="btn btn-primary shiny input-sm" id="btn_search">查询</button>
		  					</span>
		  				</div>
					</div>
				</div>
            </div>
            <table class="table table-striped table-bordered table-hover" id="data-table">
            </table>
            <div class="footer" id="data-pagination">
				<span class="pagination-total-info">共 0 条记录</span>
				<ul class="pagination">
				</ul>
            </div>
        </div>
    </div>
</div>

<script src="${contextPath}/assets/backstage/js/servicesAgency/docSimpleInformation.js"></script>
<script type="text/javascript">
	$(function() {
		common.paginationQuery(1);
		// search input框绑定回车事件
		$('#searchKeyWords').keydown(function(event) {
			event = document.all ? window.event : event;
			if ((event.keyCode || event.which) == 13) {
				common.paginationQuery(1);
			}
		});
		//查询按钮
		$("#btn_search").click(function(){
			common.paginationQuery(1);
		});
	});
</script>